<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/IC_Driver/TP_FT6336.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_27151ef53f10301e424ca52b7f0da996.html">IC_Driver</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle"><div class="title">TP_FT6336.c 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p>本例程为触摸 IC 驱动: FT6336 敦泰电子(FocalTech)  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="_t_p___f_t6336_8h_source.html">TP_FT6336.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="version_8h_source.html">version.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="dev__systick_8h_source.html">dev_systick.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="dev__io__i2c_8h_source.html">dev_io_i2c.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
TP_FT6336.c 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_t_p___f_t6336_8c__incl.png" border="0" usemap="#a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_i_c___driver_2_t_p___f_t6336_8c" alt=""/></div>
<map name="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_i_c___driver_2_t_p___f_t6336_8c" id="a_c_1_2_users_2_d_e_l_l_2_desktop_2_commit_2lvgl_2_s_w_m34_s___l_v_g_l7_811___s_w_m_u_i__20230515_2_a_p_p_2_i_c___driver_2_t_p___f_t6336_8c">
<area shape="rect" title="本例程为触摸 IC 驱动: FT6336 敦泰电子(FocalTech)" alt="" coords="154,5,377,75"/>
<area shape="rect" href="_t_p___f_t6336_8h.html" title="本例程为触摸 IC 驱动: FT6336 敦泰电子(FocalTech)" alt="" coords="173,123,272,148"/>
<area shape="rect" href="version_8h.html" title="版本/目标控制" alt="" coords="242,269,315,295"/>
<area shape="rect" href="dev__systick_8h.html" title="系统滴答定时器" alt="" coords="5,196,107,221"/>
<area shape="rect" href="dev__io__i2c_8h.html" title="IO 模拟 IIC 通讯接口" alt="" coords="347,123,440,148"/>
<area shape="rect" title=" " alt="" coords="101,269,187,295"/>
<area shape="rect" href="dev__touch_8h.html" title="TP 触摸设备驱动层" alt="" coords="181,196,272,221"/>
<area shape="rect" title=" " alt="" coords="361,196,426,221"/>
</map>
</div>
</div>
<p><a href="_t_p___f_t6336_8c_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a7b01f93f4dfe7b813806eb118d9a330a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a7b01f93f4dfe7b813806eb118d9a330a">Static_Delay_MS</a>(ms)&#160;&#160;&#160;<a class="el" href="dev__systick_8c.html#a3b0398a9543b1a7926f8739dadc61f96">systick_delay_ms</a>(ms)</td></tr>
<tr class="memdesc:a7b01f93f4dfe7b813806eb118d9a330a"><td class="mdescLeft">&#160;</td><td class="mdescRight">实现 ms 级延时  <a href="_t_p___f_t6336_8c.html#a7b01f93f4dfe7b813806eb118d9a330a">更多...</a><br /></td></tr>
<tr class="separator:a7b01f93f4dfe7b813806eb118d9a330a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a22cb6c038dd83c46f301f480b090ea"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a9a22cb6c038dd83c46f301f480b090ea">Static_GPIO_RST</a>&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#aba49717405e9709f53a7e340653eaa41">TP_GPIO_RST</a></td></tr>
<tr class="separator:a9a22cb6c038dd83c46f301f480b090ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e35163b9b8b2458d8ed860acccf2189"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a0e35163b9b8b2458d8ed860acccf2189">Static_PIN_RST</a>&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a63b6be9409fb6bdacb3e661c2114077f">TP_PIN_RST</a></td></tr>
<tr class="separator:a0e35163b9b8b2458d8ed860acccf2189"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa28e2c51103617f389e931e72d7ad437"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#aa28e2c51103617f389e931e72d7ad437">Static_GPIO_INT</a>&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a886e6b681d04e833135384b906c35855">TP_GPIO_INT</a></td></tr>
<tr class="separator:aa28e2c51103617f389e931e72d7ad437"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bfce6f9bf22ca10ae6da2e31f88977a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a5bfce6f9bf22ca10ae6da2e31f88977a">Static_PIN_INT</a>&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a0f516787a212a8060cd70b0d03ae1b13">TP_PIN_INT</a></td></tr>
<tr class="separator:a5bfce6f9bf22ca10ae6da2e31f88977a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2542829d09bfc1ecd3d0d2eaea0ccc0c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a2542829d09bfc1ecd3d0d2eaea0ccc0c">Static_INT_IRQn</a>&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a479dbee3a96123ab3deb85133104cbab">TP_INT_IRQn</a></td></tr>
<tr class="separator:a2542829d09bfc1ecd3d0d2eaea0ccc0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1709a9c3e76518cfac5ae53c91ec08eb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a1709a9c3e76518cfac5ae53c91ec08eb">Static_INT_Handler</a>&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#af512db53f2c4ab4378e1a2e0bdd768fb">TP_INT_Handler</a></td></tr>
<tr class="separator:a1709a9c3e76518cfac5ae53c91ec08eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb889b3b3d07d458ba4c7a8cd55c13cb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#adb889b3b3d07d458ba4c7a8cd55c13cb">Static_GPIO_SCL</a>&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a1e0ab863f65661b4309af875ec9e6d0d">TP_GPIO_SCL</a></td></tr>
<tr class="separator:adb889b3b3d07d458ba4c7a8cd55c13cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92bef736ad54d2b209832bfcf0a83bc2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a92bef736ad54d2b209832bfcf0a83bc2">Static_PIN_SCL</a>&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#adfe2cb63b872519329bf1ad71284c099">TP_PIN_SCL</a></td></tr>
<tr class="separator:a92bef736ad54d2b209832bfcf0a83bc2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a427da5fe3942fbe825c6d977a5e1f704"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a427da5fe3942fbe825c6d977a5e1f704">Static_GPIO_SDA</a>&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a2430e500da89d3deb28fe4ba6d85cbeb">TP_GPIO_SDA</a></td></tr>
<tr class="separator:a427da5fe3942fbe825c6d977a5e1f704"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a583f72e35e6e37f79c81382ba0c1dd12"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a583f72e35e6e37f79c81382ba0c1dd12">Static_PIN_SDA</a>&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#aef519ccca134ad2b0416daacf1fe0696">TP_PIN_SDA</a></td></tr>
<tr class="separator:a583f72e35e6e37f79c81382ba0c1dd12"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98f29e975049270f7294d868d575d478"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a98f29e975049270f7294d868d575d478">Static_IIC_Init</a>()</td></tr>
<tr class="separator:a98f29e975049270f7294d868d575d478"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0188bda80d65682f98cda88c71731c65"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a0188bda80d65682f98cda88c71731c65">Static_IIC_Start</a>(addr)&#160;&#160;&#160;<a class="el" href="dev__io__i2c_8c.html#af312bd95bfab5d6c323eb36deea573cf">io_i2c_start</a>(addr, 1)</td></tr>
<tr class="separator:a0188bda80d65682f98cda88c71731c65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08854588549d953a2496307b86cb7742"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a08854588549d953a2496307b86cb7742">Static_IIC_Read</a>(ack)&#160;&#160;&#160;<a class="el" href="dev__io__i2c_8c.html#a18a19719c37d180525d3ad812408c62a">io_i2c_read</a>(ack, 1)</td></tr>
<tr class="separator:a08854588549d953a2496307b86cb7742"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17ac6d09f16373695a2e89f23d89e6b2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a17ac6d09f16373695a2e89f23d89e6b2">Static_IIC_Write</a>(data)&#160;&#160;&#160;<a class="el" href="dev__io__i2c_8c.html#a4d0792f91f99fe78d977675f315b8b99">io_i2c_write</a>(data, 1)</td></tr>
<tr class="separator:a17ac6d09f16373695a2e89f23d89e6b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4980d5242ba8a9b57c3a819410e1b296"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a4980d5242ba8a9b57c3a819410e1b296">Static_IIC_Stop</a>()&#160;&#160;&#160;<a class="el" href="dev__io__i2c_8c.html#addb2a5d40257d803646950da9167bccb">io_i2c_stop</a>(1)</td></tr>
<tr class="separator:a4980d5242ba8a9b57c3a819410e1b296"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48ecc0d8eb9be55f1e96631099a3f7f0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a48ecc0d8eb9be55f1e96631099a3f7f0">FT6336_ADDRESS</a>&#160;&#160;&#160;0x90</td></tr>
<tr class="memdesc:a48ecc0d8eb9be55f1e96631099a3f7f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">按 8 位地址的方式定义(7 bit 器件地址 + 1 bit 读写控制位)  <a href="_t_p___f_t6336_8c.html#a48ecc0d8eb9be55f1e96631099a3f7f0">更多...</a><br /></td></tr>
<tr class="separator:a48ecc0d8eb9be55f1e96631099a3f7f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d6f9a8e8908f6742a05f329b0a20902"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a3d6f9a8e8908f6742a05f329b0a20902">TD_STAT_ADDR</a>&#160;&#160;&#160;0x02</td></tr>
<tr class="separator:a3d6f9a8e8908f6742a05f329b0a20902"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fc35413715ca6126843feae8d2f858b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a8fc35413715ca6126843feae8d2f858b">TT_MODE_BUFFER_INVALID</a>&#160;&#160;&#160;0x08</td></tr>
<tr class="separator:a8fc35413715ca6126843feae8d2f858b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a942da42659edaa8a325fb043e3f6f023"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a942da42659edaa8a325fb043e3f6f023">TD_STAT_NUMBER_TOUCH</a>&#160;&#160;&#160;0x07</td></tr>
<tr class="separator:a942da42659edaa8a325fb043e3f6f023"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adcad7e619d11b67f10af0a6ca36dee76"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#adcad7e619d11b67f10af0a6ca36dee76">TOUCH1_XH_ADDR</a>&#160;&#160;&#160;0x03</td></tr>
<tr class="separator:adcad7e619d11b67f10af0a6ca36dee76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b4fc4ba4ec85411ef07ac5c9a5eeeb6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a1b4fc4ba4ec85411ef07ac5c9a5eeeb6">TOUCH2_XH_ADDR</a>&#160;&#160;&#160;0x09</td></tr>
<tr class="separator:a1b4fc4ba4ec85411ef07ac5c9a5eeeb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11fb2632914ebe4fce13b8ef5de1dc95"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a11fb2632914ebe4fce13b8ef5de1dc95">TOUCH3_XH_ADDR</a>&#160;&#160;&#160;0x0F</td></tr>
<tr class="separator:a11fb2632914ebe4fce13b8ef5de1dc95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa816914f75926251d5ff7112dfb5c931"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#aa816914f75926251d5ff7112dfb5c931">TOUCH4_XH_ADDR</a>&#160;&#160;&#160;0x15</td></tr>
<tr class="separator:aa816914f75926251d5ff7112dfb5c931"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:aefcde442eb24f10e7dc417f09097af2d"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#aefcde442eb24f10e7dc417f09097af2d">iic_delay</a> (void)</td></tr>
<tr class="memdesc:aefcde442eb24f10e7dc417f09097af2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">iic 延时  <a href="_t_p___f_t6336_8c.html#aefcde442eb24f10e7dc417f09097af2d">更多...</a><br /></td></tr>
<tr class="separator:aefcde442eb24f10e7dc417f09097af2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acee61865928b9e73b78e2704579503c8"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#acee61865928b9e73b78e2704579503c8">tp_read_regs</a> (uint16_t reg, uint8_t *buf, uint8_t len)</td></tr>
<tr class="memdesc:acee61865928b9e73b78e2704579503c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取从机寄存器  <a href="_t_p___f_t6336_8c.html#acee61865928b9e73b78e2704579503c8">更多...</a><br /></td></tr>
<tr class="separator:acee61865928b9e73b78e2704579503c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04aaa884d879ef838eff0ebdf50e9bfe"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a04aaa884d879ef838eff0ebdf50e9bfe">tp_write_regs</a> (uint16_t reg, uint8_t *buf, uint8_t len)</td></tr>
<tr class="memdesc:a04aaa884d879ef838eff0ebdf50e9bfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">写入从机寄存器  <a href="_t_p___f_t6336_8c.html#a04aaa884d879ef838eff0ebdf50e9bfe">更多...</a><br /></td></tr>
<tr class="separator:a04aaa884d879ef838eff0ebdf50e9bfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa77f83f70b13c86ec2718be1c6adc5ba"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#aa77f83f70b13c86ec2718be1c6adc5ba">ft6336_init</a> (void)</td></tr>
<tr class="memdesc:aa77f83f70b13c86ec2718be1c6adc5ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化 TP_IC  <a href="_t_p___f_t6336_8c.html#aa77f83f70b13c86ec2718be1c6adc5ba">更多...</a><br /></td></tr>
<tr class="separator:aa77f83f70b13c86ec2718be1c6adc5ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad97b1b8850358ee6c69e3a1e25968d1e"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#ad97b1b8850358ee6c69e3a1e25968d1e">ft6336_read_points</a> (<a class="el" href="structtp__data__t.html">tp_data_t</a> *p_data, uint8_t points)</td></tr>
<tr class="memdesc:ad97b1b8850358ee6c69e3a1e25968d1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取触摸点数据  <a href="_t_p___f_t6336_8c.html#ad97b1b8850358ee6c69e3a1e25968d1e">更多...</a><br /></td></tr>
<tr class="separator:ad97b1b8850358ee6c69e3a1e25968d1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:a8a66c7f9ad03191557a7c4ac1e3c30d4"><td class="memItemLeft" align="right" valign="top">static const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_t_p___f_t6336_8c.html#a8a66c7f9ad03191557a7c4ac1e3c30d4">FT6336_X_Base</a> [4] = {<a class="el" href="_t_p___f_t6336_8c.html#adcad7e619d11b67f10af0a6ca36dee76">TOUCH1_XH_ADDR</a>, <a class="el" href="_t_p___f_t6336_8c.html#a1b4fc4ba4ec85411ef07ac5c9a5eeeb6">TOUCH2_XH_ADDR</a>, <a class="el" href="_t_p___f_t6336_8c.html#a11fb2632914ebe4fce13b8ef5de1dc95">TOUCH3_XH_ADDR</a>, <a class="el" href="_t_p___f_t6336_8c.html#aa816914f75926251d5ff7112dfb5c931">TOUCH4_XH_ADDR</a>}</td></tr>
<tr class="separator:a8a66c7f9ad03191557a7c4ac1e3c30d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >本例程为触摸 IC 驱动: FT6336 敦泰电子(FocalTech) </p>
<p >/ </p><dl class="section since"><dt>自从</dt><dd>Change Logs: Date Author Notes 2022-12-08 lzh the first version </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>本驱动可作为独立模块而应用, 目前将 各型号触摸驱动 统一嵌入例程 dev_touch 模块, 故本模块声明引用 <a class="el" href="dev__touch_8h.html" title="TP 触摸设备驱动层">dev_touch.h</a> 以快速适配具体硬件版本, 如本触摸驱动想不依赖于 dev_touch 模块, 用户只需移除 <a class="el" href="dev__touch_8h.html" title="TP 触摸设备驱动层">dev_touch.h</a> , 重新适配 Static_GPIO/PORT/Pin 具体端口, 并实现 Static_IIC_xxx() 函数</dd></dl>
<dl class="section attention"><dt>注意</dt><dd></dd></dl>
<p>THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, SYNWIT SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONN- -ECTION WITH THEIR PRODUCTS.</p>
<dl class="section copyright"><dt>版权所有</dt><dd>2012 Synwit Technology </dd></dl>

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 中定义.</p>
</div><h2 class="groupheader">宏定义说明</h2>
<a id="a7b01f93f4dfe7b813806eb118d9a330a" name="a7b01f93f4dfe7b813806eb118d9a330a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b01f93f4dfe7b813806eb118d9a330a">&#9670;&#160;</a></span>Static_Delay_MS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_Delay_MS</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ms</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="dev__systick_8c.html#a3b0398a9543b1a7926f8739dadc61f96">systick_delay_ms</a>(ms)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>实现 ms 级延时 </p>

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00034">34</a> 行定义.</p>

</div>
</div>
<a id="a9a22cb6c038dd83c46f301f480b090ea" name="a9a22cb6c038dd83c46f301f480b090ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a22cb6c038dd83c46f301f480b090ea">&#9670;&#160;</a></span>Static_GPIO_RST</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_GPIO_RST&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#aba49717405e9709f53a7e340653eaa41">TP_GPIO_RST</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00036">36</a> 行定义.</p>

</div>
</div>
<a id="a0e35163b9b8b2458d8ed860acccf2189" name="a0e35163b9b8b2458d8ed860acccf2189"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e35163b9b8b2458d8ed860acccf2189">&#9670;&#160;</a></span>Static_PIN_RST</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_PIN_RST&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a63b6be9409fb6bdacb3e661c2114077f">TP_PIN_RST</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00037">37</a> 行定义.</p>

</div>
</div>
<a id="aa28e2c51103617f389e931e72d7ad437" name="aa28e2c51103617f389e931e72d7ad437"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa28e2c51103617f389e931e72d7ad437">&#9670;&#160;</a></span>Static_GPIO_INT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_GPIO_INT&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a886e6b681d04e833135384b906c35855">TP_GPIO_INT</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00039">39</a> 行定义.</p>

</div>
</div>
<a id="a5bfce6f9bf22ca10ae6da2e31f88977a" name="a5bfce6f9bf22ca10ae6da2e31f88977a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5bfce6f9bf22ca10ae6da2e31f88977a">&#9670;&#160;</a></span>Static_PIN_INT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_PIN_INT&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a0f516787a212a8060cd70b0d03ae1b13">TP_PIN_INT</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00040">40</a> 行定义.</p>

</div>
</div>
<a id="a2542829d09bfc1ecd3d0d2eaea0ccc0c" name="a2542829d09bfc1ecd3d0d2eaea0ccc0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2542829d09bfc1ecd3d0d2eaea0ccc0c">&#9670;&#160;</a></span>Static_INT_IRQn</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_INT_IRQn&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a479dbee3a96123ab3deb85133104cbab">TP_INT_IRQn</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00041">41</a> 行定义.</p>

</div>
</div>
<a id="a1709a9c3e76518cfac5ae53c91ec08eb" name="a1709a9c3e76518cfac5ae53c91ec08eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1709a9c3e76518cfac5ae53c91ec08eb">&#9670;&#160;</a></span>Static_INT_Handler</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_INT_Handler&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#af512db53f2c4ab4378e1a2e0bdd768fb">TP_INT_Handler</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00042">42</a> 行定义.</p>

</div>
</div>
<a id="adb889b3b3d07d458ba4c7a8cd55c13cb" name="adb889b3b3d07d458ba4c7a8cd55c13cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb889b3b3d07d458ba4c7a8cd55c13cb">&#9670;&#160;</a></span>Static_GPIO_SCL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_GPIO_SCL&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a1e0ab863f65661b4309af875ec9e6d0d">TP_GPIO_SCL</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00046">46</a> 行定义.</p>

</div>
</div>
<a id="a92bef736ad54d2b209832bfcf0a83bc2" name="a92bef736ad54d2b209832bfcf0a83bc2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92bef736ad54d2b209832bfcf0a83bc2">&#9670;&#160;</a></span>Static_PIN_SCL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_PIN_SCL&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#adfe2cb63b872519329bf1ad71284c099">TP_PIN_SCL</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00047">47</a> 行定义.</p>

</div>
</div>
<a id="a427da5fe3942fbe825c6d977a5e1f704" name="a427da5fe3942fbe825c6d977a5e1f704"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a427da5fe3942fbe825c6d977a5e1f704">&#9670;&#160;</a></span>Static_GPIO_SDA</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_GPIO_SDA&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#a2430e500da89d3deb28fe4ba6d85cbeb">TP_GPIO_SDA</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00049">49</a> 行定义.</p>

</div>
</div>
<a id="a583f72e35e6e37f79c81382ba0c1dd12" name="a583f72e35e6e37f79c81382ba0c1dd12"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a583f72e35e6e37f79c81382ba0c1dd12">&#9670;&#160;</a></span>Static_PIN_SDA</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_PIN_SDA&#160;&#160;&#160;<a class="el" href="dev__touch_8h.html#aef519ccca134ad2b0416daacf1fe0696">TP_PIN_SDA</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00050">50</a> 行定义.</p>

</div>
</div>
<a id="a98f29e975049270f7294d868d575d478" name="a98f29e975049270f7294d868d575d478"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98f29e975049270f7294d868d575d478">&#9670;&#160;</a></span>Static_IIC_Init</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_IIC_Init</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">                                <span class="keywordflow">do</span> { \</div>
<div class="line">                                GPIO_Init(<a class="code hl_define" href="_t_p___f_t6336_8c.html#adb889b3b3d07d458ba4c7a8cd55c13cb">Static_GPIO_SCL</a>, <a class="code hl_define" href="_t_p___f_t6336_8c.html#a92bef736ad54d2b209832bfcf0a83bc2">Static_PIN_SCL</a>, 1, 1, 0, 0); \</div>
<div class="line">                                GPIO_Init(<a class="code hl_define" href="_t_p___f_t6336_8c.html#a427da5fe3942fbe825c6d977a5e1f704">Static_GPIO_SDA</a>, <a class="code hl_define" href="_t_p___f_t6336_8c.html#a583f72e35e6e37f79c81382ba0c1dd12">Static_PIN_SDA</a>, 1, 1, 0, 0); \</div>
<div class="line">                                GPIO_AtomicSetBit(<a class="code hl_define" href="_t_p___f_t6336_8c.html#adb889b3b3d07d458ba4c7a8cd55c13cb">Static_GPIO_SCL</a>, <a class="code hl_define" href="_t_p___f_t6336_8c.html#a92bef736ad54d2b209832bfcf0a83bc2">Static_PIN_SCL</a>); \</div>
<div class="line">                                GPIO_AtomicSetBit(<a class="code hl_define" href="_t_p___f_t6336_8c.html#a427da5fe3942fbe825c6d977a5e1f704">Static_GPIO_SDA</a>, <a class="code hl_define" href="_t_p___f_t6336_8c.html#a583f72e35e6e37f79c81382ba0c1dd12">Static_PIN_SDA</a>); \</div>
<div class="line">                                } <span class="keywordflow">while</span> (0)</div>
<div class="ttc" id="a_t_p___f_t6336_8c_html_a427da5fe3942fbe825c6d977a5e1f704"><div class="ttname"><a href="_t_p___f_t6336_8c.html#a427da5fe3942fbe825c6d977a5e1f704">Static_GPIO_SDA</a></div><div class="ttdeci">#define Static_GPIO_SDA</div><div class="ttdef"><b>Definition:</b> <a href="_t_p___f_t6336_8c_source.html#l00049">TP_FT6336.c:49</a></div></div>
<div class="ttc" id="a_t_p___f_t6336_8c_html_a583f72e35e6e37f79c81382ba0c1dd12"><div class="ttname"><a href="_t_p___f_t6336_8c.html#a583f72e35e6e37f79c81382ba0c1dd12">Static_PIN_SDA</a></div><div class="ttdeci">#define Static_PIN_SDA</div><div class="ttdef"><b>Definition:</b> <a href="_t_p___f_t6336_8c_source.html#l00050">TP_FT6336.c:50</a></div></div>
<div class="ttc" id="a_t_p___f_t6336_8c_html_a92bef736ad54d2b209832bfcf0a83bc2"><div class="ttname"><a href="_t_p___f_t6336_8c.html#a92bef736ad54d2b209832bfcf0a83bc2">Static_PIN_SCL</a></div><div class="ttdeci">#define Static_PIN_SCL</div><div class="ttdef"><b>Definition:</b> <a href="_t_p___f_t6336_8c_source.html#l00047">TP_FT6336.c:47</a></div></div>
<div class="ttc" id="a_t_p___f_t6336_8c_html_adb889b3b3d07d458ba4c7a8cd55c13cb"><div class="ttname"><a href="_t_p___f_t6336_8c.html#adb889b3b3d07d458ba4c7a8cd55c13cb">Static_GPIO_SCL</a></div><div class="ttdeci">#define Static_GPIO_SCL</div><div class="ttdef"><b>Definition:</b> <a href="_t_p___f_t6336_8c_source.html#l00046">TP_FT6336.c:46</a></div></div>
</div><!-- fragment -->
<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00052">52</a> 行定义.</p>

</div>
</div>
<a id="a0188bda80d65682f98cda88c71731c65" name="a0188bda80d65682f98cda88c71731c65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0188bda80d65682f98cda88c71731c65">&#9670;&#160;</a></span>Static_IIC_Start</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_IIC_Start</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">addr</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="dev__io__i2c_8c.html#af312bd95bfab5d6c323eb36deea573cf">io_i2c_start</a>(addr, 1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00061">61</a> 行定义.</p>

</div>
</div>
<a id="a08854588549d953a2496307b86cb7742" name="a08854588549d953a2496307b86cb7742"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08854588549d953a2496307b86cb7742">&#9670;&#160;</a></span>Static_IIC_Read</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_IIC_Read</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">ack</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="dev__io__i2c_8c.html#a18a19719c37d180525d3ad812408c62a">io_i2c_read</a>(ack, 1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00062">62</a> 行定义.</p>

</div>
</div>
<a id="a17ac6d09f16373695a2e89f23d89e6b2" name="a17ac6d09f16373695a2e89f23d89e6b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17ac6d09f16373695a2e89f23d89e6b2">&#9670;&#160;</a></span>Static_IIC_Write</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_IIC_Write</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">data</td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="dev__io__i2c_8c.html#a4d0792f91f99fe78d977675f315b8b99">io_i2c_write</a>(data, 1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00063">63</a> 行定义.</p>

</div>
</div>
<a id="a4980d5242ba8a9b57c3a819410e1b296" name="a4980d5242ba8a9b57c3a819410e1b296"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4980d5242ba8a9b57c3a819410e1b296">&#9670;&#160;</a></span>Static_IIC_Stop</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define Static_IIC_Stop</td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="dev__io__i2c_8c.html#addb2a5d40257d803646950da9167bccb">io_i2c_stop</a>(1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00064">64</a> 行定义.</p>

</div>
</div>
<a id="a48ecc0d8eb9be55f1e96631099a3f7f0" name="a48ecc0d8eb9be55f1e96631099a3f7f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48ecc0d8eb9be55f1e96631099a3f7f0">&#9670;&#160;</a></span>FT6336_ADDRESS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define FT6336_ADDRESS&#160;&#160;&#160;0x90</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>按 8 位地址的方式定义(7 bit 器件地址 + 1 bit 读写控制位) </p>

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00104">104</a> 行定义.</p>

</div>
</div>
<a id="a3d6f9a8e8908f6742a05f329b0a20902" name="a3d6f9a8e8908f6742a05f329b0a20902"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d6f9a8e8908f6742a05f329b0a20902">&#9670;&#160;</a></span>TD_STAT_ADDR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TD_STAT_ADDR&#160;&#160;&#160;0x02</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00107">107</a> 行定义.</p>

</div>
</div>
<a id="a8fc35413715ca6126843feae8d2f858b" name="a8fc35413715ca6126843feae8d2f858b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8fc35413715ca6126843feae8d2f858b">&#9670;&#160;</a></span>TT_MODE_BUFFER_INVALID</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TT_MODE_BUFFER_INVALID&#160;&#160;&#160;0x08</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00108">108</a> 行定义.</p>

</div>
</div>
<a id="a942da42659edaa8a325fb043e3f6f023" name="a942da42659edaa8a325fb043e3f6f023"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a942da42659edaa8a325fb043e3f6f023">&#9670;&#160;</a></span>TD_STAT_NUMBER_TOUCH</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TD_STAT_NUMBER_TOUCH&#160;&#160;&#160;0x07</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00109">109</a> 行定义.</p>

</div>
</div>
<a id="adcad7e619d11b67f10af0a6ca36dee76" name="adcad7e619d11b67f10af0a6ca36dee76"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adcad7e619d11b67f10af0a6ca36dee76">&#9670;&#160;</a></span>TOUCH1_XH_ADDR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TOUCH1_XH_ADDR&#160;&#160;&#160;0x03</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00111">111</a> 行定义.</p>

</div>
</div>
<a id="a1b4fc4ba4ec85411ef07ac5c9a5eeeb6" name="a1b4fc4ba4ec85411ef07ac5c9a5eeeb6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b4fc4ba4ec85411ef07ac5c9a5eeeb6">&#9670;&#160;</a></span>TOUCH2_XH_ADDR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TOUCH2_XH_ADDR&#160;&#160;&#160;0x09</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00112">112</a> 行定义.</p>

</div>
</div>
<a id="a11fb2632914ebe4fce13b8ef5de1dc95" name="a11fb2632914ebe4fce13b8ef5de1dc95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11fb2632914ebe4fce13b8ef5de1dc95">&#9670;&#160;</a></span>TOUCH3_XH_ADDR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TOUCH3_XH_ADDR&#160;&#160;&#160;0x0F</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00113">113</a> 行定义.</p>

</div>
</div>
<a id="aa816914f75926251d5ff7112dfb5c931" name="aa816914f75926251d5ff7112dfb5c931"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa816914f75926251d5ff7112dfb5c931">&#9670;&#160;</a></span>TOUCH4_XH_ADDR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TOUCH4_XH_ADDR&#160;&#160;&#160;0x15</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00114">114</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="aefcde442eb24f10e7dc417f09097af2d" name="aefcde442eb24f10e7dc417f09097af2d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefcde442eb24f10e7dc417f09097af2d">&#9670;&#160;</a></span>iic_delay()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void iic_delay </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>iic 延时 </p>

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00253">253</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_t_p___f_t6336_8c_aefcde442eb24f10e7dc417f09097af2d_icgraph.png" border="0" usemap="#a_t_p___f_t6336_8c_aefcde442eb24f10e7dc417f09097af2d_icgraph" alt=""/></div>
<map name="a_t_p___f_t6336_8c_aefcde442eb24f10e7dc417f09097af2d_icgraph" id="a_t_p___f_t6336_8c_aefcde442eb24f10e7dc417f09097af2d_icgraph">
<area shape="rect" title="iic 延时" alt="" coords="331,55,404,80"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#acee61865928b9e73b78e2704579503c8" title="读取从机寄存器" alt="" coords="185,29,282,55"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#a04aaa884d879ef838eff0ebdf50e9bfe" title="写入从机寄存器" alt="" coords="184,79,283,104"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#aa77f83f70b13c86ec2718be1c6adc5ba" title="初始化 TP_IC" alt="" coords="30,5,111,31"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#ad97b1b8850358ee6c69e3a1e25968d1e" title="读取触摸点数据" alt="" coords="5,55,136,80"/>
</map>
</div>

</div>
</div>
<a id="acee61865928b9e73b78e2704579503c8" name="acee61865928b9e73b78e2704579503c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acee61865928b9e73b78e2704579503c8">&#9670;&#160;</a></span>tp_read_regs()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint8_t tp_read_regs </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>读取从机寄存器 </p>

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00262">262</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="_t_p___f_t6336_8c_acee61865928b9e73b78e2704579503c8_cgraph.png" border="0" usemap="#a_t_p___f_t6336_8c_acee61865928b9e73b78e2704579503c8_cgraph" alt=""/></div>
<map name="a_t_p___f_t6336_8c_acee61865928b9e73b78e2704579503c8_cgraph" id="a_t_p___f_t6336_8c_acee61865928b9e73b78e2704579503c8_cgraph">
<area shape="rect" title="读取从机寄存器" alt="" coords="5,5,103,31"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#aefcde442eb24f10e7dc417f09097af2d" title="iic 延时" alt="" coords="151,5,224,31"/>
</map>
</div>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="_t_p___f_t6336_8c_acee61865928b9e73b78e2704579503c8_icgraph.png" border="0" usemap="#a_t_p___f_t6336_8c_acee61865928b9e73b78e2704579503c8_icgraph" alt=""/></div>
<map name="a_t_p___f_t6336_8c_acee61865928b9e73b78e2704579503c8_icgraph" id="a_t_p___f_t6336_8c_acee61865928b9e73b78e2704579503c8_icgraph">
<area shape="rect" title="读取从机寄存器" alt="" coords="184,31,281,56"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#aa77f83f70b13c86ec2718be1c6adc5ba" title="初始化 TP_IC" alt="" coords="30,5,111,31"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#ad97b1b8850358ee6c69e3a1e25968d1e" title="读取触摸点数据" alt="" coords="5,55,136,80"/>
</map>
</div>

</div>
</div>
<a id="a04aaa884d879ef838eff0ebdf50e9bfe" name="a04aaa884d879ef838eff0ebdf50e9bfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04aaa884d879ef838eff0ebdf50e9bfe">&#9670;&#160;</a></span>tp_write_regs()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint8_t tp_write_regs </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>reg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>写入从机寄存器 </p>

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00300">300</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="_t_p___f_t6336_8c_a04aaa884d879ef838eff0ebdf50e9bfe_cgraph.png" border="0" usemap="#a_t_p___f_t6336_8c_a04aaa884d879ef838eff0ebdf50e9bfe_cgraph" alt=""/></div>
<map name="a_t_p___f_t6336_8c_a04aaa884d879ef838eff0ebdf50e9bfe_cgraph" id="a_t_p___f_t6336_8c_a04aaa884d879ef838eff0ebdf50e9bfe_cgraph">
<area shape="rect" title="写入从机寄存器" alt="" coords="5,5,104,31"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#aefcde442eb24f10e7dc417f09097af2d" title="iic 延时" alt="" coords="152,5,225,31"/>
</map>
</div>

</div>
</div>
<a id="aa77f83f70b13c86ec2718be1c6adc5ba" name="aa77f83f70b13c86ec2718be1c6adc5ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa77f83f70b13c86ec2718be1c6adc5ba">&#9670;&#160;</a></span>ft6336_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ft6336_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化 TP_IC </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">/</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>: success </td></tr>
    <tr><td class="paramname">other</td><td>: error code </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00137">137</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="_t_p___f_t6336_8c_aa77f83f70b13c86ec2718be1c6adc5ba_cgraph.png" border="0" usemap="#a_t_p___f_t6336_8c_aa77f83f70b13c86ec2718be1c6adc5ba_cgraph" alt=""/></div>
<map name="a_t_p___f_t6336_8c_aa77f83f70b13c86ec2718be1c6adc5ba_cgraph" id="a_t_p___f_t6336_8c_aa77f83f70b13c86ec2718be1c6adc5ba_cgraph">
<area shape="rect" title="初始化 TP_IC" alt="" coords="5,5,87,31"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#acee61865928b9e73b78e2704579503c8" title="读取从机寄存器" alt="" coords="135,5,232,31"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#aefcde442eb24f10e7dc417f09097af2d" title="iic 延时" alt="" coords="280,5,353,31"/>
</map>
</div>

</div>
</div>
<a id="ad97b1b8850358ee6c69e3a1e25968d1e" name="ad97b1b8850358ee6c69e3a1e25968d1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad97b1b8850358ee6c69e3a1e25968d1e">&#9670;&#160;</a></span>ft6336_read_points()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ft6336_read_points </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structtp__data__t.html">tp_data_t</a> *&#160;</td>
          <td class="paramname"><em>p_data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>points</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>读取触摸点数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">p_data</td><td>: 触摸点数据 </td></tr>
    <tr><td class="paramname">points</td><td>: 需要读取的触点个数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">返回读取到的触点信息的个数</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00197">197</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="_t_p___f_t6336_8c_ad97b1b8850358ee6c69e3a1e25968d1e_cgraph.png" border="0" usemap="#a_t_p___f_t6336_8c_ad97b1b8850358ee6c69e3a1e25968d1e_cgraph" alt=""/></div>
<map name="a_t_p___f_t6336_8c_ad97b1b8850358ee6c69e3a1e25968d1e_cgraph" id="a_t_p___f_t6336_8c_ad97b1b8850358ee6c69e3a1e25968d1e_cgraph">
<area shape="rect" title="读取触摸点数据" alt="" coords="5,5,136,31"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#acee61865928b9e73b78e2704579503c8" title="读取从机寄存器" alt="" coords="184,5,281,31"/>
<area shape="rect" href="_t_p___f_t6336_8c.html#aefcde442eb24f10e7dc417f09097af2d" title="iic 延时" alt="" coords="329,5,403,31"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="a8a66c7f9ad03191557a7c4ac1e3c30d4" name="a8a66c7f9ad03191557a7c4ac1e3c30d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a66c7f9ad03191557a7c4ac1e3c30d4">&#9670;&#160;</a></span>FT6336_X_Base</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const uint8_t FT6336_X_Base[4] = {<a class="el" href="_t_p___f_t6336_8c.html#adcad7e619d11b67f10af0a6ca36dee76">TOUCH1_XH_ADDR</a>, <a class="el" href="_t_p___f_t6336_8c.html#a1b4fc4ba4ec85411ef07ac5c9a5eeeb6">TOUCH2_XH_ADDR</a>, <a class="el" href="_t_p___f_t6336_8c.html#a11fb2632914ebe4fce13b8ef5de1dc95">TOUCH3_XH_ADDR</a>, <a class="el" href="_t_p___f_t6336_8c.html#aa816914f75926251d5ff7112dfb5c931">TOUCH4_XH_ADDR</a>}</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_t_p___f_t6336_8c_source.html">TP_FT6336.c</a> 第 <a class="el" href="_t_p___f_t6336_8c_source.html#l00119">119</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
